package ptu.service;

import ptu.entity.User;
import ptu.result.Result;

public interface UserService {

    //查询所有用户
    Result selectAll();

    //登录
    Result login(String username,String password);

    //注册
    Result register(User user);

    //注销用户
    Result logout(String username);

    //修改用户
    Result update(User user);

    //查询单个用户
    Result selectByUsername(String username);

    Result delete(String username);

    User getUserById(Integer id);
}
